using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 服务费设置
    /// </summary>
    [SugarTable("corecmsfooddeskfee", TableDescription = "服务费设置")]
    public partial class corecmsfooddeskfee
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public corecmsfooddeskfee()
        {
        }
        /// <summary>
        /// 
        /// </summary>

        [SugarColumn(ColumnDescription = "", IsPrimaryKey = true)]
        public System.Int32 id { get; set; }
        /// <summary>
        /// 品牌id
        /// </summary>

        [SugarColumn(ColumnDescription = "品牌id")]
        public System.Int32 corpId { get; set; }

        /// <summary>
        /// 门店Id
        /// </summary>
        [SugarColumn(ColumnDescription = "门店Id")]
        public System.Int32 storeId { get; set; }
        /// <summary>
        /// 服务费名称
        /// </summary>
        [SugarColumn(ColumnDescription = "服务费名称")]
        public System.String name { get; set; }

        /// <summary>
        /// 服务费方案（服务费方案（1.按就餐人数，2.按每桌台收取，3.按消费金额收取(商品惠后价×设置比例)，4.按消费金额收取(商品价格合计×设置比例)5.按时间收取，6.消费补齐））
        /// </summary>
        [SugarColumn(ColumnDescription = "服服务费方案（1.按就餐人数，2.按每桌台收取，3.按消费金额收取(商品惠后价×设置比例)，4.按消费金额收取(商品价格合计×设置比例)5.按时间收取，6.消费补齐）")]
        public System.Int32 feeType { get; set; }

        /// <summary>
        /// 服务费方案收取值
        /// </summary>
        [SugarColumn(ColumnDescription = "服务费方案收取值", DecimalDigits = 2)]
        public System.Decimal feeValue { get; set; }

        /// <summary>
        /// 每x时收取
        /// </summary>

        [SugarColumn(ColumnDescription = "每x时收取", IsNullable = true)]
        public System.Int32? unitValue { get; set; }

        /// <summary>
        /// 每x时收取
        /// </summary>
        [SugarColumn(ColumnDescription = "时间单位（1.小时，2.分钟）", IsNullable = true)]
        public System.Int32? unit { get; set; }
        /// <summary>
        /// 不计入服务费商品规格id集合
        /// </summary>

        [SugarColumn(ColumnDescription = "不计入服务费商品规格id集合")]
        public System.String foodSpecIds { get; set; }

        /// <summary>
        /// 是否允许POS端手动修改服务费金额
        /// </summary>
        public System.Boolean posChange { get; set; }

        /// <summary>
        /// 0.关闭，1开启
        /// </summary>
        [SugarColumn(ColumnDescription = "0.关闭，1开启")]
        public System.Boolean status { get; set; }

        /// <summary>
        /// 出品部门id
        /// </summary>
        [SugarColumn(ColumnDescription = "出品部门id", IsNullable = true)]
        public System.Int64? departId { get; set; }

        /// <summary>
        /// 适用桌台id集合
        /// </summary>
        [SugarColumn(ColumnDescription = "适用桌台id集合")]
        public System.String deskIds { get; set; }

        /// <summary>
        /// 使用有效期类型(0.永久有效；1.自定义有效期)
        /// </summary>
        [SugarColumn(ColumnDescription = "使用有效期类型(0.永久有效；1.自定义有效期)")]
        public System.Boolean validityType { get; set; }

        /// <summary>
        /// 自定义开始日期
        /// </summary>
        [SugarColumn(ColumnDescription = "自定义开始日期", IsNullable = true)]
        public System.DateTime? startDate { get; set; }

        /// <summary>
        /// 自定义结束日期
        /// </summary>
        [SugarColumn(ColumnDescription = "自定义结束日期", IsNullable = true)]
        public System.DateTime? endDate { get; set; }

        /// <summary>
        /// 生效星期集合（周一至周日）

        [SugarColumn(ColumnDescription = "生效星期集合（周一至周日）")]
        public System.String validityDay { get; set; }
        /// <summary>
        /// 生效时间段集合
        /// </summary>
        [SugarColumn(ColumnDescription = "生效时间段集合")]

        public System.String validityTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public System.Int64? modifyTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDescription = "是否删除")]
        public System.Boolean isDelete { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public System.DateTime createTime { get; set; }
    }
}
